﻿using AutoMapper;
using Esosi.Balance.Bll.Dtos;
using System;
using System.Collections.Generic;
using System.Text;

namespace Esosi.Balance.Bll.Models.Hospital
{
    public class HospitalTpiProfile : Profile
    {
        public HospitalTpiProfile()
        {
            CreateMap<RegisterTpiDto, RegisterHospitalTpi>()
                .ForMember(dest => dest.PatientName, opt => opt.MapFrom(src => src.PatientInfoDto.PatientName)).ReverseMap();
        }
    }
}